import request from '../request'
//分类的接口
let TWO_URL = '/category'
let FILTER_URL = '/category/sub/filter'
let GOODS_URL = '/category/goods/temporary'
//分类数据的设置api
export function getTwoCate(id) {
    return request({
        url: TWO_URL + "?id=" + id,
        method: 'get',
    })
}
//品牌数据的设置api
export function cateFilter(id) {
    return request({
        url: FILTER_URL + "?id=" + id,
        method: 'get',
    })
}
//筛选数据的设置api
export function getGoods(params) {
    return request({
        url: GOODS_URL,
        method: 'post',
        data: params 
    })
}